export const DOMAIN = "localhost:8080";
export interface Assignment {
  id: number;
  name: string;
  moduleId: number;
  createdAt: string;
  updatedAt: string;
  groupsize: number;
  deadline: string;
}

export interface Question {
  id: number;
  assignmentId: number;
  createdAt: number;
  updatedAt: number;
  questionText: string;
  startDate: number;
  endDate: number;
  criteria: string;
  description: string;
  minMark: number;
  maxMark: number;
}

export interface IPairing {
  id: number;
  studentId: number;
  markerId: number;
  active: number;
}

export interface GradingTask {
  pairId: number;
  submissionId: number;
  fileKey: string;
  active: number;
  assignmentId: number;
  questionId: number;
  content: string;
}

export interface Grade {
  comment: string;
  createdAt: number;
  grade: number;
  id: number;
  pairingId: number;
  rubricId: number;
  submissionId: number;
  updatedAt: number;
}

export interface GradeAsg {
  pairingId: number;
  grade: number;
  rubricId: number;
  submissionId: number;
  studentId: number;
  markerId: number;
  studentName: string;
  markerName: string;
}

export interface GradeChartYAxis {
  name: string;
  data: number[];
}

export const SUCCESS_CODE = "00000";

export interface Submission {
  id: number;
  createdAt: number;
  updatedAt: number;
  submittedByStudentId: number;
  assignmentId: number;
  contentFileLoc: string;
}

export interface IUserRoles {
  id: number;
  userId: number;
  roleId: number;
  createTime: number;
  updateTime: number;
  deleted: number;
}

export interface IUserInfo {
  id: number;
  createdAt: number;
  updatedAt: number;
  email: string;
  name: string;
  password: string;
  avatar: string;
  salt: string;
}
